package com.seh.contentcenter.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@Data
public class ChatDTO {
    //聊天记录唯一标识符
    private Integer chatId;
    //发送者ID
    private Integer fromId;
    //接收者ID
    private Integer toId;
    //聊天消息内容
    private String message;
    //发送时间
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date sendTime;
    //用户信息
    private UserDTO userDTO;
}
